package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TbEventInfect entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_EVENT_INFECT", schema = "dbo", catalog = "AGDB")
public class TbEventInfect implements java.io.Serializable {

	// Fields

	private String eiId;
	private TbEvent tbEvent;
	private String eiAddr;
	private String eiRadius;
	private String eiLongitude;
	private String eiLatitude;
	private String eiScopeDesc;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbEventInfect() {
	}

	/** minimal constructor */
	public TbEventInfect(String eiId, String eiAddr) {
		this.eiId = eiId;
		this.eiAddr = eiAddr;
	}

	/** full constructor */
	public TbEventInfect(String eiId, TbEvent tbEvent, String eiAddr,
			String eiRadius, String eiLongitude, String eiLatitude,
			String eiScopeDesc, String a, String b, String c) {
		this.eiId = eiId;
		this.tbEvent = tbEvent;
		this.eiAddr = eiAddr;
		this.eiRadius = eiRadius;
		this.eiLongitude = eiLongitude;
		this.eiLatitude = eiLatitude;
		this.eiScopeDesc = eiScopeDesc;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "EI_ID", unique = true, nullable = false, length = 10)
	public String getEiId() {
		return this.eiId;
	}

	public void setEiId(String eiId) {
		this.eiId = eiId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "E_ID")
	public TbEvent getTbEvent() {
		return this.tbEvent;
	}

	public void setTbEvent(TbEvent tbEvent) {
		this.tbEvent = tbEvent;
	}

	@Column(name = "EI_ADDR", nullable = false, length = 50)
	public String getEiAddr() {
		return this.eiAddr;
	}

	public void setEiAddr(String eiAddr) {
		this.eiAddr = eiAddr;
	}

	@Column(name = "EI_RADIUS", length = 10)
	public String getEiRadius() {
		return this.eiRadius;
	}

	public void setEiRadius(String eiRadius) {
		this.eiRadius = eiRadius;
	}

	@Column(name = "EI_LONGITUDE", length = 20)
	public String getEiLongitude() {
		return this.eiLongitude;
	}

	public void setEiLongitude(String eiLongitude) {
		this.eiLongitude = eiLongitude;
	}

	@Column(name = "EI_LATITUDE", length = 20)
	public String getEiLatitude() {
		return this.eiLatitude;
	}

	public void setEiLatitude(String eiLatitude) {
		this.eiLatitude = eiLatitude;
	}

	@Column(name = "EI_SCOPE_DESC", length = 256)
	public String getEiScopeDesc() {
		return this.eiScopeDesc;
	}

	public void setEiScopeDesc(String eiScopeDesc) {
		this.eiScopeDesc = eiScopeDesc;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}